<?php
if (! defined('IN_WEB')) {
    exit('Access Denied');
}

header("Content-type: text/html;charset=UTF-8");

require_once (ROOT . '/includes/smarty/Smarty.class.php');
global $smarty;
$smarty = new Smarty();
$smarty->debugging = false;
$smarty->template_dir = ROOT . '/templates'; //设置模板目录
$smarty->compile_dir = ROOT . '/templates_c'; //设置编译目录
$smarty->left_delimiter = '<{';
$smarty->right_delimiter = '}>';

class Controller {

    var $smarty;

    function __construct () {
        global $smarty;
        $this->smarty = $smarty;
        $this->smarty->assign('login_url', LOGIN_URL);
    }
}